package com.xiaoyu.awakening.ai.control.entity.dto;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * AwkChatChoice
 *
 * @author wangxiaoyu
 * @date 2024/7/5 17:00
 * @since v1.0
 */
@NoArgsConstructor
@Data
public class AwkChatChoice {
    @JsonProperty("message")
    private AwkChatMessage message;
    @JsonProperty(
            value = "index",
            required = true
    )
    private int index;
    @JsonProperty(
            value = "finish_reason",
            required = true
    )
    private String finishReason;
    @JsonProperty("delta")
    private String delta;

    @JsonCreator
    private AwkChatChoice(@JsonProperty(value = "index", required = true) int index, @JsonProperty(value = "finish_reason", required = true) String finishReason) {
        this.index = index;
        this.finishReason = finishReason;
    }
}
